package com.jhsw.roadsun.module.business.controller.app.expressage.vo.goods;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "APP - 寄件货物信息新增 Request VO")
@Data
public class AppExpressageGoodsSaveReqVO {

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "单价", requiredMode = Schema.RequiredMode.REQUIRED, example = "12021")
    @NotEmpty(message = "单价不能为空")
    private BigDecimal unitPrice;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数量不能为空")
    private Long num;

    @Schema(description = "货物总价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "21680")
    @NotEmpty(message = "货物总价格不能为空")
    private BigDecimal totalPrice;
}